package com.dit.action.employee;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.dit.action.AbstractAction;
import com.dit.entity.Employee;
import com.dit.service.EmployeeService;

public class ViewEmployeeListAction extends AbstractAction{
	
	@Autowired
	private EmployeeService employeeService;
	
	private List<Employee> list;
	
	public String execute() {
		
		list = employeeService.getEmployeeList();
		return SUCCESS;
		
	}

	public List<Employee> getList() {
		return list;
	}

	public void setList(List<Employee> list) {
		this.list = list;
	}

	
}
